package com.ciaojian.bytedance.vo.bytedance;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
@Data
public class DeliveryPrepareVo implements Serializable {


    /**
     * data : {"error_code":0,"description":"success","verify_token":"xxx","out_order_no":"out123456","order_id":"ot123456","certificates":[{"encrypted_code":"xxx","certificate_id":"123456","item_order_id":"ot123"}]}
     * extra : {"sub_error_code":0,"sub_description":"success","logid":"2022092115392201020812109511046","now":1663745962686,"error_code":0,"description":"success"}
     */

    private String secret;

    private DataBean data;
    private ExtraBean extra;

    @Data
    public static class DataBean implements Serializable {
        /**
         * error_code : 0
         * description : success
         * verify_token : xxx
         * out_order_no : out123456
         * order_id : ot123456
         * certificates : [{"encrypted_code":"xxx","certificate_id":"123456","item_order_id":"ot123"}]
         */

        private int error_code;
        private String description;
        private String verify_token;
        private String out_order_no;
        private String order_id;
        private List<CertificatesBean> certificates;

        @Data
        public static class CertificatesBean implements Serializable {
            /**
             * encrypted_code : xxx
             * certificate_id : 123456
             * item_order_id : ot123
             */

            private String encrypted_code;
            private String certificate_id;
            private String item_order_id;
        }
    }

    @Data
    public static class ExtraBean implements Serializable {
        /**
         * sub_error_code : 0
         * sub_description : success
         * logid : 2022092115392201020812109511046
         * now : 1663745962686
         * error_code : 0
         * description : success
         */

        private int sub_error_code;
        private String sub_description;
        private String logid;
        private long now;
        private int error_code;
        private String description;
    }
}


